home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / etc / sample.Xdefaults < prev    next >
Encoding:
Text File  |  1995-06-06  |  8.8 KB  |  251 lines

  1. ! This is a sample .Xdefaults file.  The resources below are the
  2. ! actual resources used as defaults for XEmacs, although the
  3. ! form of these resources in the XEmacs app-defaults file is
  4. ! slightly different.
  5. ! You can use the examples below as a basis for your own customizations:
  6. ! copy and modify any of the resources below into your own ~/.Xdefaults file.
  7. ! .Xdefaults specifies defaults for all applications, not just XEmacs; it is
  8. ! normally used to customize fonts, colors, and the like, while ~/.emacs is
  9. ! used to change other sorts of (XEmacs-specific) behavior.
  10. ! In general, changes to your .Xdefaults file will not take effect until the
  11. ! next time you restart the window system.  To reload your resources
  12. ! explicitly, use the shell command
  13. !     xrdb -load ~/.Xdefaults
  14. ! The resources will take effect the next time you restart XEmacs.  (Simply
  15. ! creating a new xemacs frame is not enough - you must restart the editor
  16. ! for the changes to take effect.)
  17.  
  18.  
  19. ! Colors and backgrounds.
  20. ! ======================
  21. ! The contrasts of these colors will cause them to map to the appropriate
  22. ! one of "black" or "white" on monochrome systems.
  23. ! The valid color names on your system can be found by looking in the file
  24. ! `rgb.txt', usually found in /usr/lib/X11/ or /usr/openwin/lib/X11/.
  25.  
  26.  
  27. ! Set the foreground and background colors.  This will apply to all
  28. ! elements of XEmacs, except those that specifically override them.
  29. Emacs*Foreground:            Black
  30. Emacs*Background:            WhiteSmoke
  31. Emacs.modeline.attributeForeground:    Black
  32. Emacs.modeline.attributeBackground:    Gray75
  33.  
  34. ! Set the color of the text cursor.
  35. Emacs*cursorColor:            Red3
  36.  
  37. ! Set the color of the mouse pointer.
  38. Emacs*pointerColor:            Black
  39.  
  40. ! Set the menubar colors.  This overrides the default foreground and
  41. ! background colors specified above.
  42. Emacs*menubar*Foreground:        Gray30
  43. Emacs*menubar*Background:        Gray75
  44. ! This is for buttons in the menubar.  
  45. ! Yellow would be better, but that would map to white on monochrome.
  46. Emacs*menubar.buttonForeground:        Blue
  47. Emacs*XlwMenu.selectColor:        ForestGreen
  48. Emacs*XmToggleButton.selectColor:    ForestGreen
  49.  
  50. ! Specify the colors of popup menus.
  51. Emacs*popup*Foreground:            Black
  52. Emacs*popup*Background:            Gray75
  53.  
  54. ! Specify the colors of the various sub-widgets of the dialog boxes.
  55. Emacs*dialog*Foreground:        Black
  56. ! #A5C0C1 is a shade of blue
  57. Emacs*dialog*Background:        #A5C0C1
  58. Emacs*dialog*XmTextField*Background:    WhiteSmoke
  59. Emacs*dialog*XmText*Background:        WhiteSmoke
  60. Emacs*dialog*XmList*Background:        WhiteSmoke
  61.  
  62. ! Xlw Scrollbar colors
  63. Emacs*XlwScrollBar.Foreground:        Gray30
  64. Emacs*XlwScrollBar.Background:        Gray75
  65. Emacs*XmScrollBar.Foreground:        Gray30
  66. Emacs*XmScrollBar.Background:        Gray75
  67.  
  68. !
  69. ! The Lucid Scrollbar supports two added resources, KnobStyle is either
  70. ! "plain" (default) or "dimple".  Dimple puts a small dimple in the middle
  71. ! of the knob that depresses when the knob is clicked on.  ArrowPosition is
  72. ! either "opposite" (default) or "same".  Opposite puts the arrows at opposite
  73. ! of the scrollbar, same puts both arrows at the same end, like the Amiga.
  74. !
  75. ! Emacs*XlwScrollBar.KnobStyle:      dimple
  76. ! Emacs*XlwScrollBar.ArrowPosition:  opposite
  77.  
  78.  
  79. !
  80. ! If you want to turn off a toolbar, set its height or width to 0.
  81. ! The correct size value is not really arbitrary.  We only control it
  82. ! this way in order to avoid excess frame resizing when turning the
  83. ! toolbars on and off.
  84. !
  85. ! To change the heights and widths of the toolbars:
  86. !
  87. ! Emacs.topToolBarHeight:        37
  88. ! Emacs.bottomToolBarHeight:        0
  89. ! Emacs.leftToolBarWidth:        0
  90. ! Emacs.rightToolBarWidth:        0
  91.  
  92. Emacs*topToolBarShadowColor:        Gray90
  93. Emacs*bottomToolBarShadowColor:        Gray40
  94. Emacs*backgroundToolBarColor:        Gray75
  95. Emacs*toolBarShadowThickness:        2
  96.  
  97.  
  98. ! If you want to turn off vertical scrollbars, or change the default
  99. ! pixel width of the vertical scrollbars, do it like this (0 width
  100. ! means no vertical scrollbars):
  101. ! Emacs.scrollBarWidth: 0
  102. ! To change it for a particular frame, do this:
  103. ! Emacs*FRAME-NAME.scrollBarWidth: 0
  104.  
  105.  
  106. ! If you want to turn off horizontal scrollbars, or change the default
  107. ! pixel height of the horizontal scrollbars, do it like this (0 height
  108. ! means no horizontal scrollbars):
  109. ! Emacs.scrollBarHeight: 0
  110. ! To change it for a particular frame, do this:
  111. ! Emacs*FRAME-NAME.scrollBarHeight: 0
  112.  
  113.  
  114. ! To dynamically change the labels used for menubar buttons...
  115. ! Emacs*XlwMenu.resourceLabels: True
  116. ! Emacs*XlwMenu.newFrame.labelString: Open Another Window
  117.  
  118. ! To have the Motif scrollbars on the left instead of the right, do this:
  119. ! Emacs*scrollBarPlacement: BOTTOM_LEFT
  120. !
  121. ! To have the Athena scrollbars on the right, use `BOTTOM_RIGHT' instead
  122.  
  123. ! To have Motif scrollbars act more like Xt scrollbars...
  124. !
  125. ! Emacs*XmScrollBar.translations: #override \n\
  126. !     <Btn1Down>:     PageDownOrRight(0)    \n\
  127. !     <Btn3Down>:     PageUpOrLeft(0)
  128.  
  129. ! Fonts.
  130. ! ======
  131. ! XEmacs requires the use of XLFD (X Logical Font Description) format font
  132. ! names, which look like
  133. !     *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
  134. ! if you use any of the other, less strict font name formats, some of which
  135. ! look like
  136. !         lucidasanstypewriter-12
  137. ! and        fixed
  138. ! and        9x13
  139. ! then XEmacs won't be able to guess the names of the bold and italic versions.
  140. ! All X fonts can be referred to via XLFD-style names, so you should use those
  141. ! forms.  See the man pages for X(1), xlsfonts(1), and xfontsel(1).
  142.  
  143.  
  144. ! The default font for the text area of XEmacs is chosen at run-time
  145. ! by lisp code which tries a number of different possibilities in order
  146. ! of preference.  If you wish to override it, use this:
  147. ! Emacs.default.attributeFont:  -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  148.  
  149. ! If you choose a font which does not have an italic version, you can specify
  150. ! some other font to use for it here:
  151. ! Emacs.italic.attributeFont:  -*-courier-medium-o-*-*-*-120-*-*-*-*-iso8859-*
  152. !
  153. ! And here is how you would set the background color of the `highlight' face,
  154. ! but only on the screen named `debugger':
  155. ! Emacs*debugger.highlight.attributeBackground:        PaleTurquoise
  156. ! See the NEWS file (C-h n) for a more complete description of the resource
  157. ! syntax of faces.
  158.  
  159.  
  160. ! Font of the modeline, menubar and pop-up menus.
  161. ! Note that the menubar resources do not use the `face' syntax, since they
  162. ! are X toolkit widgets and thus outside the domain of XEmacs proper.
  163. Emacs*menubar*Font:         -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  164. Emacs*popup*Font:        -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  165.  
  166. ! Font in the Motif dialog boxes.
  167. ! (Motif uses `fontList' while most other things use `font' - if you don't
  168. ! know why you probably don't want to.)
  169. Emacs*XmDialogShell*FontList:    -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  170. Emacs*XmTextField*FontList:    -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  171. Emacs*XmText*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  172. Emacs*XmList*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  173.  
  174.  
  175. ! Dialog box translations.
  176. ! =======================
  177.  
  178. ! This accelerator binds <return> in a dialog box to <activate> on button1
  179. Emacs*dialog*button1.accelerators:#override\
  180. <KeyPress>Return: ArmAndActivate()\n\
  181. <KeyPress>KP_Enter: ArmAndActivate()\n\
  182. Ctrl<KeyPress>m: ArmAndActivate()\n
  183.  
  184. ! Translations to make the TextField widget behave more like XEmacs
  185. Emacs*XmTextField.translations: #override\n\
  186.     !<Key>osfBackSpace:    delete-previous-character()\n\
  187.     !<Key>osfDelete:    delete-previous-character()\n\
  188.     !Ctrl<Key>h:         delete-previous-character()\n\
  189.     !Ctrl<Key>d:         delete-next-character()\n\
  190.     !Meta<Key>osfDelete:    delete-previous-word()\n\
  191.     !Meta<Key>osfBackSpace:    delete-previous-word()\n\
  192.     !Meta<Key>d:        delete-next-word()\n\
  193.     !Ctrl<Key>k:        delete-to-end-of-line()\n\
  194.     !Ctrl<Key>g:        process-cancel()\n\
  195.     !Ctrl<Key>b:        backward-character()\n\
  196.     !<Key>osfLeft:        backward-character()\n\
  197.     !Ctrl<Key>f:        forward-character()\n\
  198.     !<Key>osfRight:        forward-character()\n\
  199.     !Meta<Key>b:        backward-word()\n\
  200.     !Meta<Key>osfLeft:    backward-word()\n\
  201.     !Meta<Key>f:        forward-word()\n\
  202.     !Meta<Key>osfRight:    forward-word()\n\
  203.     !Ctrl<Key>e:        end-of-line()\n\
  204.     !Ctrl<Key>a:        beginning-of-line()\n\
  205.     !Ctrl<Key>w:        cut-clipboard()\n\
  206.     !Meta<Key>w:        copy-clipboard()\n\
  207.     <Btn2Up>:        copy-primary()\n
  208.  
  209. ! With the XEmacs typeahead it's better to not have space be bound to
  210. ! ArmAndActivate() for buttons that appear in dialog boxes.  This is
  211. ! not 100% Motif compliant but the benefits far outweight the
  212. ! compliancy problem.  
  213. Emacs*dialog*XmPushButton.translations:#override\n\
  214.     <Btn1Down>:         Arm()\n\
  215.     <Btn1Down>,<Btn1Up>: Activate()\
  216.             Disarm()\n\
  217.     <Btn1Down>(2+):     MultiArm()\n\
  218.     <Btn1Up>(2+):       MultiActivate()\n\
  219.     <Btn1Up>:           Activate()\
  220.                 Disarm()\n\
  221.     <Key>osfSelect:      ArmAndActivate()\n\
  222.     <Key>osfActivate:   ArmAndActivate()\n\
  223.     <Key>osfHelp:    Help()\n\
  224.     ~Shift ~Meta ~Alt <Key>Return:    ArmAndActivate()\n\
  225.     <EnterWindow>:      Enter()\n\
  226.     <LeaveWindow>:      Leave()\n
  227.  
  228.